//
//  UUID+Extension.swift
//  NetWork
//
//  Created by Delin Meng 孟德林 on 2018/11/6.
//  Copyright © 2018 Delin Meng 孟德林. All rights reserved.
//

import Foundation
import CoreBluetooth

class UUIDComment: NSObject {

    static func compareCBUUID(uuid1:CBUUID,uuid2:CBUUID) -> Int {
        let u1 = (uuid1.data as? NSData)?.bytes
        let u2 = (uuid2.data as? NSData)?.bytes
        if memcmp(u1, u2, 16) == 0 {
            return 1
        }
        return 0
    }

}
